package io.plus.user_interface.common.packet;

public enum ChatType {
    unknow(0),
    public_chat(1),
    private_chat(2),
    ;

    private final int value;

    ChatType(int value) {
        this.value = value;
    }

    public static ChatType forNumber(int value) {
        switch (value) {
            case 0:
                return unknow;
            case 1:
                return public_chat;
            case 2:
                return private_chat;
            default:
                return null;
        }
    }

    public final int getNumber() {
        return value;
    }
}

